home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Book Chapters / 02 - Basic Game Graphics / Amalgam ƒ / Amalgam.h < prev    next >
Encoding:
Text File  |  1995-03-05  |  1.6 KB  |  43 lines  |  [TEXT/MMCC]

  1. //\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
  2. //
  3. //    Amalgam.h
  4. //
  5. //    Global data externs & defines & stuff.
  6. //
  7. //\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
  8.  
  9. //  __#Defines________________________________________________________________________
  10. #undef TRUE
  11. #define TRUE                    !0        //Apple defines TRUE == 0x0001; let's define
  12.                                         //it as all bits on: 0xFFFF
  13.  
  14. #define DEBUG                    TRUE    //among other things, this govorns whether
  15.                                         //mAssert statements are active or not.
  16.  
  17. //  __#Headers________________________________________________________________________
  18. #include "Utils.h"
  19.  
  20. //  __#Protos_________________________________________________________________________
  21. //  ___Macros_________________________________________________________________________
  22. //  __ Enums__________________________________________________________________________
  23. //  __ Typedefs_______________________________________________________________________
  24. //  __ Extern Globals_________________________________________________________________
  25. extern OSErr                gErr;
  26. extern Str32                gAppName;
  27. extern DialogPtr            gMainDlogPtr;
  28. extern CGrafPtr                gMainDlogPort;
  29. extern GDHandle                gMainDlogGDev;
  30. extern EventRecord            gTheEvent;
  31. extern Boolean                gInForeground;
  32. extern Boolean                gQuitting;
  33.  
  34. extern GDHandle                gMainDevice;
  35. extern short                gNumActiveScreens;
  36. extern Rect                    gOriginalDlogPortRect;
  37.  
  38. //  __ Protos__________________________________________________________________
  39. void HandleUpdate( void );
  40. void HandleKey( void );
  41. void HandleMouseDown( void );
  42.  
  43.